
<!DOCTYPE html>
<html lang="en">
<head>

    <title>修改用户的页面</title>
    <!-- 引入js文件 -->
    <!-- 导入css样式 -->
    <link rel="stylesheet" href="/resources/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/resources/bootstrap/style.css" />
    <script type="text/javascript" src="/resources/jquery/jquery-1.11.0.min.js"></script>
    <script type="text/javascript" src="/resources/jquery/jquery-migrate-1.2.1.min.js"></script>
    <script type="text/javascript" src="/resources/easyUI/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/resources/easyUI/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/resources/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/resources/easyUI/easyui.css">

    <script>
        $(function () {
            //弹框提示信息
            if("${tip}"){
                $.messager.show({
                    title:'添加用户',
                    msg:"<span style='color:red;'>${tip}</span>",
                    showType:'slide'
                });
            }
        })
    </script>
</head>
<body>
<center>

<#--${tip}-->
    <#--这整个页面获取的user.XXX都是来自session的！！！！不是来自model的-->

    <div class="container">
        <div class="row info-content">
            <form id="updateSelfForm" class="form-horizontal" method="post" action="/user/updateUser" enctype="multipart/form-data" style="margin-top: 20px;">
                <!-- 隐藏用户的id,修改用 -->
                <input type="hidden"  name="id" value="${user_session.id}"/>
                <div class="form-group">
                    <label class="col-sm-2 control-label">工号</label>
                    <div class="col-sm-3">
                        <button class="btn" style="background: #11a9e2;color: #ffffff;" disabled="disabled" type="button">
                        ${user_session.id} <span class="badge"></span>
                        </button>
                    </div>
                    <label class="col-sm-2 control-label">姓名</label>
                    <div class="col-sm-3">
                        <input id="username" name="username"  value="${user_session.username}" type="text" class="form-control" placeholder="请输入您的姓名">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">座右铭</label>
                    <div class="col-sm-3">
                        <input id="note" name="note"  value="${user_session.note}" type="text" class="form-control" placeholder="请输入您的座右铭">
                    </div>
                    <label class="col-sm-2 control-label">密码</label>
                    <div class="col-sm-3">
                        <input type="password" id="password" name="password"
                               value="${user_session.password}" class="form-control" placeholder="请输入您的密码">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">头像</label>
                    <div class="col-sm-3">
                        <#--<img src="/upload/${user_session.imageLu}"  height="100">-->
                        <img src="/file/${user_session.imageLu}" height="100">
                            <#--<img src="/file1/${user_session.imageLu}" height="100">-->
                    </div>
                    <label class="col-sm-2 control-label">修改头像</label>
                    <div class="col-sm-3">
                        <input placeholder="请选择头像" type="file" name="image" accept="image/*"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-3">
                        <button type="submit" id="btn_submit"  class="btn btn-info"><span class="glyphicon glyphicon-edit"> 提交修改</span></button>
                    </div>
                </div>


            </form>
        </div>
    </div>
</center>
</body>
</html>